package app.msy.cn.takephoto;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.RelativeLayout;
import android.widget.Toast;

import app.msy.cn.takephoto.camera.CameraActivity;
import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;

public class MainActivity extends Activity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        ButterKnife.bind(this);
    }

    @OnClick({R.id.btn_take_photo, R.id.btn_filter_image})
    public void onClick(View view) {
        switch (view.getId()) {
            case R.id.btn_take_photo:
                startActivity(new Intent(this, CameraActivity.class));
                break;
            case R.id.btn_filter_image:
                startActivity(new Intent(this, FilterImageActivity.class));
                break;
        }
    }
}
